package com.example.othree.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StationData {

    @JsonProperty("Station_Id_C")
    private String stationId;

    @JsonProperty("Lat")
    private String lat;

    @JsonProperty("Lon")
    private String lon;

    @JsonProperty("City")
    private String city;

    @JsonProperty("Station_Name")
    private String stationName;

    @JsonProperty("Cnty")
    private String cnty;

    @JsonProperty("Province")
    private String province;

    @JsonProperty("Datetime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private String datetime;

    @JsonProperty("PRS_Avg")
    private String prsAvg;

    @JsonProperty("PRS_Max")
    private String prsMax;

    @JsonProperty("PRS_Min")
    private String prsMin;

    @JsonProperty("TEM_Max")
    private String temMax;

    @JsonProperty("TEM_Avg")
    private String temAvg;

    @JsonProperty("TEM_Min")
    private String temMin;

    @JsonProperty("RHU_Avg")
    private String rhuAvg;

    @JsonProperty("RHU_Min")
    private String rhuMin;

    @JsonProperty("PRE_Time_2020")
    private String preTime2020;

    @JsonProperty("PRE_Time_0808")
    private String preTime0808;

    @JsonProperty("WIN_S")
    private String winS;

    @JsonProperty("WIN_S_2mi_Avg")
    private String winS2miAvg;

    @JsonProperty("GST_Avg")
    private String gstAvg;

    @JsonProperty("GST_Max")
    private String gstMax;

    @JsonProperty("GST_Min")
    private String gstMin;

    @JsonProperty("SSH")
    private String ssh;

    // Getters and setters
    public String getStationId() { return stationId; }
    public void setStationId(String stationId) { this.stationId = stationId; }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getCnty() {
        return cnty;
    }

    public void setCnty(String cnty) {
        this.cnty = cnty;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getPrsAvg() {
        return prsAvg;
    }

    public void setPrsAvg(String prsAvg) {
        this.prsAvg = prsAvg;
    }

    public String getPrsMax() {
        return prsMax;
    }

    public void setPrsMax(String prsMax) {
        this.prsMax = prsMax;
    }

    public String getPrsMin() {
        return prsMin;
    }

    public void setPrsMin(String prsMin) {
        this.prsMin = prsMin;
    }

    public String getTemAvg() {
        return temAvg;
    }

    public void setTemAvg(String temAvg) {
        this.temAvg = temAvg;
    }

    public String getTemMin() {
        return temMin;
    }

    public void setTemMin(String temMin) {
        this.temMin = temMin;
    }

    public String getRhuAvg() {
        return rhuAvg;
    }

    public void setRhuAvg(String rhuAvg) {
        this.rhuAvg = rhuAvg;
    }

    public String getRhuMin() {
        return rhuMin;
    }

    public void setRhuMin(String rhuMin) {
        this.rhuMin = rhuMin;
    }

    public String getPreTime2020() {
        return preTime2020;
    }

    public void setPreTime2020(String preTime2020) {
        this.preTime2020 = preTime2020;
    }

    public String getPreTime0808() {
        return preTime0808;
    }

    public void setPreTime0808(String preTime0808) {
        this.preTime0808 = preTime0808;
    }

    public String getWinS() {
        return winS;
    }

    public void setWinS(String winS) {
        this.winS = winS;
    }

    public String getWinS2miAvg() {
        return winS2miAvg;
    }

    public void setWinS2miAvg(String winS2miAvg) {
        this.winS2miAvg = winS2miAvg;
    }

    public String getGstAvg() {
        return gstAvg;
    }

    public void setGstAvg(String gstAvg) {
        this.gstAvg = gstAvg;
    }

    public String getGstMax() {
        return gstMax;
    }

    public void setGstMax(String gstMax) {
        this.gstMax = gstMax;
    }

    public String getGstMin() {
        return gstMin;
    }

    public void setGstMin(String gstMin) {
        this.gstMin = gstMin;
    }

    public String getSsh() {
        return ssh;
    }

    public void setSsh(String ssh) {
        this.ssh = ssh;
    }

    public String getTemMax() {
        return temMax;
    }

    public void setTemMax(String temMax) {
        this.temMax = temMax;
    }

    @Override
    public String toString() {
        return "StationData{" +
                "stationId='" + stationId + '\'' +
                ", lat='" + lat + '\'' +
                ", lon='" + lon + '\'' +
                ", city='" + city + '\'' +
                ", stationName='" + stationName + '\'' +
                ", cnty='" + cnty + '\'' +
                ", province='" + province + '\'' +
                ", datetime='" + datetime + '\'' +
                ", prsAvg='" + prsAvg + '\'' +
                ", prsMax='" + prsMax + '\'' +
                ", prsMin='" + prsMin + '\'' +
                ", temMax='" + temMax + '\'' +
                ", temAvg='" + temAvg + '\'' +
                ", temMin='" + temMin + '\'' +
                ", rhuAvg='" + rhuAvg + '\'' +
                ", rhuMin='" + rhuMin + '\'' +
                ", preTime2020='" + preTime2020 + '\'' +
                ", preTime0808='" + preTime0808 + '\'' +
                ", winS='" + winS + '\'' +
                ", winS2miAvg='" + winS2miAvg + '\'' +
                ", gstAvg='" + gstAvg + '\'' +
                ", gstMax='" + gstMax + '\'' +
                ", gstMin='" + gstMin + '\'' +
                ", ssh='" + ssh + '\'' +
                '}';
    }
}

